gtk_text_view_size_allocate (GtkWidget *widget,
GtkAllocation *allocation)
{
- GtkAllocation widget_allocation;
GtkTextView *text_view;
GtkTextViewPrivate *priv;
gint width, height;
GdkRectangle right_rect;
GdkRectangle top_rect;
GdkRectangle bottom_rect;
- gboolean size_changed;
text_view = GTK_TEXT_VIEW (widget);
priv = text_view->priv;
DV(g_print(G_STRLOC"\n"));
- gtk_widget_get_allocation (widget, &widget_allocation);
- size_changed =
- widget_allocation.width != allocation->width ||
- widget_allocation.height != allocation->height;
-
/* distribute width/height among child windows. Ensure all
* windows get at least a 1x1 allocation.
*/
*/
gtk_text_view_flush_first_validate (text_view);
- /* widget->window doesn't get auto-redrawn as the layout is computed, so has to
- * be invalidated
- */
- if (size_changed)
- gtk_widget_queue_draw (widget);
-
gtk_widget_set_clip (widget, allocation);
}